import { Routes, RouterModule }  from '@angular/router';
import {ProductComponent} from "./product.component";
import {DeviceComponent} from "./device/device.component";
import {DeviceDetailComponent} from "./device-detail/device-detail.component";
import { DevicePointComponent } from './device-point/device-point.component';
import { PointComponent } from './point/point.component';
import { DeviceGrouppointComponent } from './device-grouppoint/device-grouppoint.component';
import { DeviceGroupComponent } from './device-group/device-group.component';

const routes:Routes = [
  { path: '', component: ProductComponent},
  { path: 'device/:productId', component: DeviceComponent},
  { path: 'device/devicedetail/:deviceId', component: DeviceDetailComponent},
  { path: 'device/devicepoint/:deviceId', component: DevicePointComponent},
  { path: 'device/devicegrouppoint/:deviceId', component: DeviceGrouppointComponent},
  { path:'device/devicegroup/:deviceId',component:DeviceGroupComponent },
  { path:'point/:productId',component:PointComponent }


];

export const ProductRoute = RouterModule.forChild(routes);
